type crypto/internal/bigmod.choice
24 uses
crypto/internal/bigmod (current package)
nat.go#L24: type choice uint
nat.go#L26: func not(c choice) choice { return 1 ^ c }
nat.go#L28: const yes = choice(1)
nat.go#L29: const no = choice(0)
nat.go#L32: func ctMask(on choice) uint { return -uint(on) }
nat.go#L36: func ctEq(x, y uint) choice {
nat.go#L40: return not(choice(c1 | c2))
nat.go#L199: func (x *Nat) Equal(y *Nat) choice {
nat.go#L213: func (x *Nat) IsZero() choice {
nat.go#L228: func (x *Nat) cmpGeq(y *Nat) choice {
nat.go#L240: return not(choice(c))
nat.go#L246: func (x *Nat) assign(on choice, y *Nat) *Nat {
nat.go#L451: needSubtraction = not(choice(borrow)) | choice(carry)
nat.go#L510: func (x *Nat) maybeSubtractModulus(always choice, m *Modulus) {
nat.go#L515: keep := not(choice(underflow)) | choice(always)
nat.go#L528: x.assign(choice(underflow), t)
nat.go#L538: x.maybeSubtractModulus(choice(overflow), m)
nat.go#L639: x.maybeSubtractModulus(choice(c), m)
nat.go#L657: x.maybeSubtractModulus(choice(c), m)
nat.go#L671: x.maybeSubtractModulus(choice(c), m)
nat.go#L685: x.maybeSubtractModulus(choice(c), m)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |